package classfile

type ConstantUtf8Info struct {
	str string
}

func (self *ConstantUtf8Info)ReadInfo(reader *ClassReader) {
	length := uint32(reader.ReadUint16())
	val := reader.ReadBytes(length)
	self.str = decodeMUTF8(val)
}

func decodeMUTF8(bytes []byte) string {
	return string(bytes)
}